package com.hawk.eye.server.domain.vo.resp;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hawk.eye.server.domain.dto.resp.ProblemRecordRespDTO;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

/**
 *
 * @author salad
 * @date 2023-10-23
 */
@Data
public class RepairApiRespVO {

    /**
     *
     */
    private Long id;


    private String name;

    private String stackHash;

    private Long baseAlarmId;

    private Long createUser;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    private String createUserName;

    private Integer reqType;

    private String repairDesc;

    private String reqUri;

    private String reqHeaders;

    private String reqParams;

    private String reqBody;

    private Long execCount;

    private Long execSuccessCount;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime lastExecTime;

    private Integer lastExecSuccessful;

    private String lastExecResult;

    private Long lastExecUser;

    private String lastExecUserName;

    private List<ProblemRecordRespVO> problemList;

    private String baseAlarmLog;

    private String paramName;

    private String paramValue;

}
